package com.iss.lxhproject.service;


import com.iss.lxhproject.dao.ConsumeDao;
import com.iss.lxhproject.entity.Consume;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ConsumeService {
    @Autowired
    ConsumeDao dao;
    public Integer insertConsume(Consume consume){
        return dao.insertConsume(consume);
    }
    public List<Consume> selectAllConsume(){
        return dao.selectAllConsume();
    }
    public Integer deleteConsume(Integer[] consume_id_Array){
        return  dao.deleteConsume(consume_id_Array);
    }
    public Integer updateConsume(Consume consume){
        return dao.updateConsume(consume);
    }
    public Consume selectConsumeById(Integer consume_id){
        return dao.selectConsumeById(consume_id);
    }

}
